package com.zgbd.douyanglive.controller;

import com.zgbd.douyanglive.service.ILiveService;
import com.zjbd.douyangcommoncore.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 直播接口
 */
@Slf4j
@RestController
@RequestMapping("/douyang/live")
public class LiveController {

    @Autowired
    private ILiveService iLiveService;

    @GetMapping("/getLiveList")
    public Result getLiveList(){
        return Result.success("这是直播间列表");
    }

    @GetMapping("/LiveTip")
    public String LiveTip(){
        log.info("1、接口收到请求");
        String s = iLiveService.liveTip(121);
        return "打赏女主播";
    }

}
